package com.lanxin.oa.qx.service;

import com.lanxin.bean.QxFunction;
import com.lanxin.bean.QxRole;
import com.lanxin.bean.ZzEmployee;
import com.lanxin.util.PageBean;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface QxroleService {

    //查询角色表
    public PageBean<QxRole> selectRole(Integer page, Integer pageSize);

    //添加角色表
    public void eidsRole(QxRole role);

    //通过id查找
    public QxRole seletcById(Integer oid);

    //修改角色
    public void updateRole(QxRole role);

    //通过条件查询
    public PageBean<QxRole> pageRole(Integer page, Integer pageSize, String roleName);

    //查询第三方表
    public QxRole selectRoleUser(Integer oid);

    //添加第三方表
    public void insertRoleUser(Integer roid, String eids);

    //查询第三方表权限表
    public List<QxFunction> listFunctions();

    //添加第三方表
    public void insertRoleFunction(Integer oid, String fids);

    //查询我的权限
    public List<ZzEmployee> myFunctions(Integer eid);

    //删除权限
    public boolean deleteRole(QxRole qxRole);

}
